From e7d5c458b1485d9443885340c36dbe36cd1ee2dd Mon Sep 17 00:00:00 2001 From: robertl Date: Fri, 5 May 2006 22:48:05 +0000 Subject: [PATCH] Add automatic href generation to (most of) the formats for doc generation and Ron's new html chunkifier. git-svn-id: http://gpsbabel.googlecode.com/svn/trunk@2018 f51c46e8-681c-474f-0cfe-069cfd0219fb --- gpsbabel/Makefile.in | 14 +++++++++----- gpsbabel/tools/mkcapabilities | 4 +++- 2 files changed, 12 insertions(+), 6 deletions(-) diff --git a/gpsbabel/Makefile.in b/gpsbabel/Makefile.in index 62ad808d5..b51a87684 100644 --- a/gpsbabel/Makefile.in +++ b/gpsbabel/Makefile.in @@ -125,12 +125,16 @@ dep: (echo -n "internal_styles.c: mkstyle.sh " ; echo style/*.style ; /bin/echo -e '\t./mkstyle.sh > internal_styles.c || (rm -f internal_styles.c ; exit 1)' ) >> /tmp/dep echo Edit Makefile and bring in /tmp/dep -readme.html: readme.xml +$(WEB)/htmldoc/readme.html: readme.xml + xmlwf $< #check for well-formedness + xmllint --noout --valid $< #validate xsltproc --stringparam html.stylesheet \ - "http://www.gpsbabel.org/style3.css" \ - http://docbook.sourceforge.net/release/xsl/current/xhtml/docbook.xsl \ - $< > $@ || rm $@ - cp readme.html $(WEB)/readme.xhtml + "http://www.gpsbabel.org/style3.css" \ + --stringparam base.dir "$(WEB)/htmldoc/" \ + --stringparam use.id.as.filename 1 \ + --stringparam root.filename "readme" \ + http://docbook.sourceforge.net/release/xsl/current/xhtml/chunk.xsl \ + $< tools/mkcapabilities readme.txt: readme.html diff --git a/gpsbabel/tools/mkcapabilities b/gpsbabel/tools/mkcapabilities index af3a2d955..9eae08131 100755 --- a/gpsbabel/tools/mkcapabilities +++ b/gpsbabel/tools/mkcapabilities @@ -3,7 +3,8 @@ function getcap(type, cap, sname, lname) { if (type == "internal") return print "" print "" lname "" - print "" sname "" + + print " " sname "" # This is bad... printf "" @@ -25,5 +26,6 @@ function getcap(type, cap, sname, lname) { } print "" } + getcap($1, $2, $3, $5) ' > ../babelweb/capabilities.inc > ../babelweb/capabilities.inc -- 2.30.2